home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000582_dsr@hplb.hpl.hp.com _Tue Jan 19 11:58:23 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  4KB

  1. Return-Path: <dsr@hplb.hpl.hp.com>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA18806; Tue, 19 Jan 93 11:58:23 MET
  4. Received: by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  5.     id AA23318; Tue, 19 Jan 1993 12:13:43 +0100
  6. Received: from dragget.hpl.hp.com by hplb.hpl.hp.com; Tue, 19 Jan 93 11:10:20 GMT
  7. Received: by manuel.hpl.hp.com
  8.     (16.6/15.6+ISC) id AA03925; Tue, 19 Jan 93 11:14:56 GMT
  9. From: Dave_Raggett <dsr@hplb.hpl.hp.com>
  10. Message-Id: <9301191114.AA03925@manuel.hpl.hp.com>
  11. Subject: HTML and Lists
  12. To: www-talk@nxoc01.cern.ch
  13. Date: Tue, 19 Jan 93 11:14:54 GMT
  14. Mailer: Elm [revision: 66.25]
  15.  
  16. DL, UL and OL Lists
  17. -------------------
  18.  
  19. Can we please avoid too tight a definition:
  20.  
  21. (from From: Dan Connolly  Thu, 14 Jan 93 to  www-talk)
  22.  
  23. > Can we do the following instead of using paragraphs in DL?
  24. > <DL>
  25. > <DT>large
  26. > <DT>big
  27. > <DD>Large and big are synonyms.
  28. > <DD>They share a definition.
  29. > <DD>This is the third paragraph of explanation about big
  30. > and large things.
  31. > </DL>
  32. > It appears that the linemode browser generally groks. Thus, let's
  33. > not mess with P's in DL's. (P's in UL's are messy enough to leave
  34. > out too, I guess.)
  35.  
  36. I support:
  37.  
  38.     o   DD terms can include <P> breaks
  39.  
  40.     o   LI terms can include <P> breaks for UL and OL lists
  41.  
  42. The use of <P> in lists is both natural and easy to implement, and I for one
  43. would find the repeated DD's awkward to deal with as well as screwing up the
  44. natural semantics of a one to one relationship between DT and DD text.
  45.  
  46.     o   DT terms can be arbitrarily long and are wrapped onto the line below
  47.  
  48. This occasionally happens, e.g. when people place long anchors as DT terms.
  49. It was also reasonably simple to implement.
  50.  
  51. It might be an improvement to emulate the approach used by Latex as in:
  52.  
  53. \begin{description}
  54.     \item[TERMS ARE IN A BIG FONT]
  55.         while their defintions follow in the normal font
  56.         and wrap round with a margin indent.
  57. \end{description}
  58.  
  59. giving:
  60.  
  61.   TERMS ARE IN A BIG FONT while their definitions follow in the normal font
  62.     and wrap round with a margin indent.
  63.  
  64. versus the HTML guidelines which suggest:
  65.  
  66.   TERMS ARE IN A BIG FONT       while their defintions follow in the normal
  67.                                 font and wrap round with a margin indent.
  68.  
  69. The Latex approach allows terms to be as long as you like, and avoids the
  70. issue of what to do when terms collide with the definition text. Perhaps
  71. the HTML guidelines should leave this issue open ...
  72.  
  73. I would further like to have the freedom to embed lists, e.g. OL in UL and
  74. vice versa, but allowing only one level of embedding, e.g.
  75.  
  76. <UL>
  77.     <LI>This is a simple item.
  78.     <LI>While this one requires some amplification:
  79.         <OL>
  80.             <LI>first point
  81.             <LI>second point
  82.             <LI>third point
  83.         </OL>
  84.     <LI>Another simple item
  85. </UL>
  86.  
  87. My implementation of lists is fairly relaxed whilst being able to support
  88. smooth scrolling of arbitrary length HTML documents. The processing demands
  89. for this require the browser to be able parse backwards - working forwards
  90. from the start of the document each time is MUCH TOO SLOW. This is not a
  91. problem unless there is an HTML feature which forces you to go back
  92. arbitrarily far before you can figure out the state (margins, font, active
  93. tags etc.) from which to work forwards again to your current location.
  94.  
  95. The awkward features turn out to be:
  96.  
  97.     a)  ordered lists
  98.     b)  multi-line DT terms
  99.  
  100. In practice neither of these has caused real problems since actual documents
  101. keep their use to relatively short sections at a time. A way out of my
  102. problems would be to embed state info in the buffer as processing attributes,
  103. so far I have been able to provide good scrolling performance while keeping to
  104. the vanilla text representation of HTML docs.
  105.  
  106. Cheers for now (the Pub is bekoning)
  107.  
  108. Dave Raggett